#ifndef __NAVIRES_H__
#define __NAVIRES_H__

#include "../NavigateRes/resource.h"

class NaviRes
{
	typedef std::map<UINT, HBITMAP> mapBmp;
	typedef std::map<UINT, HCURSOR> mapCursor;

public:
	mapBmp		m_Bmp;
	mapCursor	m_Cursor;
	HMODULE		m_hRes;

public:
	NaviRes(): m_hRes(NULL){}
	~NaviRes();

public:
	void InitRes();
	const HMODULE* GetResModule()const {return &m_hRes;}
	const HCURSOR* FindCrusorRes(UINT id) const	{return FindRes(id, m_Cursor);}
	const HBITMAP* FindBmpRes	(UINT id) const	{return FindRes(id, m_Bmp);}

private:
	const HBITMAP* FindRes(UINT id, const mapBmp & res) const;
	const HCURSOR* FindRes(UINT id, const mapCursor & res)const;
};

#endif